<!DOCTYPE html>

<html  lang="en"  xmlns:th="http://www.thymeleaf.org">
<base th:href="@{/}">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>HP-HR - 修改职称信息</title>
	<meta name="keywords" content="">
	<meta name="description" content="">

	<link rel="shortcut icon" href="favicon.ico">
	<link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">

	<!-- Data Tables -->
	<link href="../css/plugins/dataTables/dataTables.bootstrap.css"
		rel="stylesheet">
	<link href="../css/animate.css" rel="stylesheet">
	<link href="../css/style.css?v=4.1.0" rel="stylesheet">

</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>修改职称信息</h5>
					</div>
					<div class="ibox-content">
						<form method="post" class="form-horizontal" id="commentForm" action="position/updPosition">
							<input name="id" hidden type="text" th:value="${position.getId()}">
							<div class="form-group">
								<label class="col-sm-3 control-label">职称号</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" name="positionNumber" th:value="${position.getPositionNumber()}"> readonly="readonly">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">名称</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" placeholder="" name="name" th:value="${position.getName()}" required>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">权限级别</label>
								<div class="col-sm-7">
									<select class="form-control m-b" name="level" size="1" required>
										<option value="部门主任" >部门主任</option>
										<option value="部门员工" >部门员工</option>
										<option value="人事部主任" >人事部主任</option>
										<option value="人事部员工" >人事部员工</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注</label>
								<div class="col-sm-7">
									<input type="text" class="form-control" placeholder="" name="notes" th:value="${position.getNotes()}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-8">
									<button class="btn btn-success" type="submit">修&nbsp;&nbsp;改</button>&nbsp;&nbsp;&nbsp;&nbsp;
									<button class="btn btn-white" type="reset" onclick="jump()">取&nbsp;&nbsp;消</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<!-- 全局js -->
	<script src="../js/jquery.min.js?v=2.1.4"></script>
	<script src="../js/bootstrap.min.js?v=3.3.6"></script>
	<script src="../js/plugins/jeditable/jquery.jeditable.js"></script>
	
	<!-- Data Tables -->
	<script src="../js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="../js/plugins/dataTables/dataTables.bootstrap.js"></script>

	<!-- 自定义js -->
	<script src="../js/content.js?v=1.0.0"></script>
	
	<!-- 表单验证 -->
	<script src="../js/plugins/validate/jquery.validate.min.js"></script>
	<script src="../js/plugins/validate/messages_zh.min.js"></script>
	
	<!-- layer javascript -->
    <script src="js/plugins/layer/layer.min.js"></script>
	<script>
		function jump(){
			window.location.href="/position/listPage";
		}
	$().ready(function() {
	    $("#commentForm").validate();
	});
	$.validator.setDefaults({
	    submitHandler: function() {
	    	parent.layer.alert('修改成功！', {icon: 1}),
	    	form.submit();
	    }
	});
	</script>
</body>
</html>
